package com.aigou.admin.service;

import com.aigou.admin.entity.PageEntity;
import com.aigou.admin.entity.SearchHistory;

import java.util.List;

/**
 * @author chai
 * @date 2024/12/8 0008
 * @Description
 */
public interface SearchHistoryService {
    List<SearchHistory> findAll();
    SearchHistory findById(String id);
    Boolean save(SearchHistory searchHistory);
    Boolean update(SearchHistory searchHistory);
    Boolean remove(String id);
    /**
     * 分页查询
     * @param current
     * @param pageSize
     * @return
     */
    PageEntity<SearchHistory> findSearchHistoryPage(Integer current, Integer pageSize);

    PageEntity<SearchHistory> findSearchHistoryLikePage(Integer current, Integer pageSize,String k);
}
